<template>
  <div>
    <h3>请选择你喜欢的专栏</h3>
    <ul>
      <li v-for="item in arr1" :key="item" >
        <input type="checkbox" :value="item" v-model="arr2" />{{ item }}
      </li>
    </ul>
    <br />
    <h1>{{ this.arr2.join(',') }}</h1>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr1: ['科幻', '喜剧', '动漫', '冒险', '科技', '军事', '娱乐', '奇闻'],
      arr2: [],
    }
  },
}
</script>

<style>
li {
  list-style: none;
  float: left;

}
</style>